cmake_minimum_required(VERSION 3.15)
project(regex)

file(GLOB src ${PROJECT_SOURCE_DIR}/*.cc)
set(EXECUTABLE_OUTPUT_PATH ${BIN_PATH})
foreach(srcfile IN LISTS src)
    get_filename_component(elfname ${srcfile} NAME_WE)
    add_executable(${elfname} ${srcfile})
endforeach(srcfile IN LISTS src)

